home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / src / OS2 / Makefile.reg < prev   
Makefile  |  1997-08-08  |  3KB  |  102 lines

  1. # Makefile for regex.
  2. # Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. version = 0.12
  19.  
  20. # You can define CPPFLAGS on the command line.  Aside from system-specific
  21. # flags, you can define:
  22. #   -DREGEX_MALLOC to use malloc/realloc/free instead of alloca.
  23. #   -DDEBUG to enable the compiled pattern disassembler and execution
  24. #           tracing; code runs substantially slower.
  25. #   -DEXTRACT_MACROS to use the macros EXTRACT_* (as opposed to
  26. #           the corresponding C procedures).  If not -DDEBUG, the macros
  27. #           are used.
  28. CPPFLAGS = 
  29.  
  30. # Likewise, you can override CFLAGS to optimize, use -Wall, etc.
  31. CFLAGS = -g
  32.  
  33. # Ditto for LDFLAGS and LOADLIBES.
  34. LDFLAGS =
  35. LOADLIBES =
  36.  
  37. srcdir = .
  38. VPATH = .
  39.  
  40. CC = gcc
  41. DEFS = 
  42.  
  43. SHELL = /bin/ksh
  44.  
  45. subdirs = doc test
  46.  
  47. default all:: pvmregex.o regex.o
  48. .PHONY: default all
  49.  
  50. pvmregex.o: pvmregex.c regex.h
  51.     $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
  52.  
  53. regex.o: regex.c regex.h
  54.     $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
  55.  
  56. clean mostlyclean::
  57.     rm -f *.o
  58.  
  59. distclean:: clean
  60.     rm -f Makefile 
  61.  
  62. extraclean:: distclean
  63.     rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
  64.  
  65. #configure: configure.in
  66. #    autoconf
  67.  
  68. #config.status: configure
  69. #    sh configure --no-create
  70.  
  71. #Makefile: Makefile.in config.status
  72. #    sh config.status
  73.  
  74. makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
  75. DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
  76.  
  77. default all install \
  78. mostlyclean clean distclean extraclean realclean \
  79. TAGS check::
  80.     for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
  81. .PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
  82.  
  83. # Prevent GNU make 3 from overflowing arg limit on system V.
  84. .NOEXPORT:
  85.  
  86. distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
  87.             *.in configure regex.c regex.h 
  88. distdir = regex-$(version)
  89. distargs = version=$(version) distdir=../$(distdir)/$$d
  90. dist: TAGS configure
  91.     @echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
  92.     @echo "  regex.c, regex.h,"
  93.     @echo "  and doc/xregex.texi (if modified)."
  94.     rm -rf $(distdir)
  95.     mkdir $(distdir)
  96.     ln $(distfiles) $(distdir)
  97.     for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
  98.     tar czhf $(distdir).tar.Z $(distdir)
  99.     rm -rf $(distdir)
  100. .PHONY: dist
  101.